package start;

import org.springframework.beans.factory.config.BeanPostProcessor;
import org.springframework.context.Lifecycle;

public class B implements I,Lifecycle {
    private Boolean isRunning=false;
    public B() {
        System.out.println("Constructor:"+this.getClass().getCanonicalName()+"="+this);
    }

    @Override
    public void start() {
        System.out.println(this+":      start()");
        isRunning = true;
    }

    @Override
    public void stop() {
        System.out.println(this+":      stop()");
        isRunning = false;
    }

    @Override
    public boolean isRunning() {
        System.out.println(this+":      isRunning()="+isRunning);
        return isRunning;
    }
}
